package com.tool;

import java.lang.management.ManagementFactory;
import java.util.Date;

public class ToolJdk {

    /**
     * 获取服务器启动时间
     */
    public static Date getServerStartDate() {
        return new Date(ManagementFactory.getRuntimeMXBean().getStartTime());
    }
}
